package com.suxin.event.annotations;

import org.springframework.context.ApplicationListener;

import java.lang.reflect.Method;

/**
 * @author Tang
 * @classname EventListenerFactory
 * @description [  ]
 * @date 2023/2/28 16:25
 */
public interface EventListenerFactory {

    /**
     * supportsMethod
     * @param method
     * @return
     */
    public boolean supportsMethod(Method method);


    /**
     * createApplicationListener
     * @return
     */
    public ApplicationListener<?> createApplicationListener(Method method, String beanName, Class<?> clz);

}
